package ShiYan;

import java.util.Scanner;

class Example13
{
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        int x = 0;
        System.out.println("请输入x的值：");
        x = sc.nextInt();
        int count;
        count = 0;
        while(x<=10)
        {
            if(x%2==1)
            {
                count++;
                System.out.println(x);
            }
            x++;
        }
        System.out.println("count="+count);
    }
}
